package com.itttq.kb.model.po;

import java.util.Date;

import com.itttq.kb.common.annotation.Column;
import com.itttq.kb.common.annotation.Column.ColumnType;
import com.itttq.kb.common.annotation.Table;

/** 用户表。后面补全信息。 **/

@Table(name="kb_user")
public class UserPo extends BasePo {
	private static final long serialVersionUID = -26689095094857386L;
	/* 头像 */
	@Column(name="avatar")
	private String avatar;
	/* 创建时间 */
	@Column(name="create_time", inInsert=false, inUpdate=false)
	private Date createTime;
	/* 创建人ID */
	@Column(name="creator_id",type=ColumnType.NUMBER)
	private Long creatorId;
	/* 邮箱地址 */
	@Column(name="email")
	private String email;
	
	@Column(name="id", inInsert=false, inUpdate=false, inSelect=false,type=ColumnType.NUMBER)
	private Integer id;
	/* 手机号 */
	@Column(name="mobile")
	private String mobile;
	/* 真实姓名 */
	@Column(name="name")
	private String name;
	/* 主题数 */
	@Column(name="number_publish",type=ColumnType.NUMBER)
	private Integer numberPublish;
	/* 回复数 */
	@Column(name="number_reply",type=ColumnType.NUMBER)
	private Integer numberReply;
	/* 加密方式：md5(md5(password) + md5(salt)) */
	@Column(name="password")
	private String password;
	/* 注册IP，如果是多重IP，考虑都记录下来。作为跟踪使用 */
	@Column(name="register_ip")
	private String registerIp;
	/* Salt值，加密使用 */
	@Column(name="salt")
	private String salt;
	/* 数据更新时间 */
	@Column(name="update_time", inInsert=false, inUpdate=false)
	private Date updateTime;
	/* 更新人ID */
	@Column(name="updater_id",type=ColumnType.NUMBER)
	private Long updaterId;
	/* 登录用户名 */
	@Column(name="username")
	private String username;
	
	
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Long getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getNumberPublish() {
		return numberPublish;
	}
	public void setNumberPublish(Integer numberPublish) {
		this.numberPublish = numberPublish;
	}
	
	public Integer getNumberReply() {
		return numberReply;
	}
	public void setNumberReply(Integer numberReply) {
		this.numberReply = numberReply;
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getRegisterIp() {
		return registerIp;
	}
	public void setRegisterIp(String registerIp) {
		this.registerIp = registerIp;
	}
	
	public String getSalt() {
		return salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}
	
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public Long getUpdaterId() {
		return updaterId;
	}
	public void setUpdaterId(Long updaterId) {
		this.updaterId = updaterId;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
}